home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / util1 / yk211src.lha / Yak_2.11_Src / Prefs / Include / Blank_window.h next >
C/C++ Source or Header  |  1995-11-16  |  2KB  |  78 lines

  1.  
  2. #ifndef BLANK_H
  3.  
  4. #define BLANK_H
  5.  
  6. #ifndef INTUITION_INTUITION_H
  7. #include <intuition/intuition.h>
  8. #endif
  9. #ifndef LIBRARIES_GADTOOLS_H
  10. #include <libraries/gadtools.h>
  11. #endif
  12.  
  13. /* Blanking Window gadgets */
  14.  
  15. #define GDX_ScrTONum        0
  16. #define GDX_MouseTONum      1
  17. #define GDX_MBMethod        2
  18. #define GDX_Return3         3
  19. #define GDX_BlankMouseOnKey 4
  20. #define GDX_ScrBlMethod     5
  21.  
  22.  
  23. /* Number of gadgets */
  24.  
  25. #define Blank_CNT          6
  26.  
  27.  
  28.  
  29. /* Global variables */
  30.  
  31. #ifdef GADTOOLS
  32. GLOBAL struct Window       *BlankWnd;
  33. GLOBAL struct Gadget       *BlankGList;
  34. GLOBAL struct Gadget       *BlankGadgets[Blank_CNT];
  35. GLOBAL UWORD                BlankWidth;
  36. GLOBAL UWORD                BlankHeight;
  37. GLOBAL UBYTE               *BlankWdt;
  38. GLOBAL struct IntuiText     BlankIText[];
  39. GLOBAL UWORD                BlankGTypes[];
  40. GLOBAL struct NewGadget     BlankNGad[];
  41. GLOBAL ULONG                BlankGTags[];
  42. GLOBAL UBYTE               *MBMethod0Labels[];
  43. #endif
  44.  
  45. GLOBAL int  OpenBlankWindow     (void);
  46. GLOBAL VOID CloseBlankWindow    (VOID);
  47. GLOBAL LONG HandleBlankIDCMP    (VOID);
  48. GLOBAL BOOL ShowBlankWindow     (VOID);
  49.  
  50. #ifdef MUI
  51. GLOBAL APTR   BlankWnd;
  52. GLOBAL APTR   BlankObjects[];
  53. GLOBAL UBYTE *BlankWdt;
  54. #endif
  55.  
  56. #ifdef BGUI                                             /* NMC */
  57. GLOBAL struct Window            *BlankWnd;
  58. GLOBAL Object                   *BlankObjects[];
  59. #endif
  60.  
  61.  
  62. #if defined(BGUI) || defined(MUI)              /* NMC */
  63.  
  64. #define INT_ScrTimeout          BlankObjects[GDX_ScrTONum]
  65. #define INT_MouseTimeout        BlankObjects[GDX_MouseTONum]
  66. #define CYC_MBMethod            BlankObjects[GDX_MBMethod]
  67. #define BT_Return3              BlankObjects[GDX_Return3]
  68. #define CH_BlankMKey            BlankObjects[GDX_BlankMouseOnKey]
  69. #define CYC_SBMethod            BlankObjects[GDX_ScrBlMethod]
  70.  
  71. GLOBAL APTR CreateBlankWindow   (VOID);
  72. GLOBAL BOOL ShowBlankWindow     (VOID);
  73. GLOBAL VOID CloseBlankWindow    (VOID);
  74. GLOBAL LONG HandleBlankReturnID (LONG id);
  75. #endif
  76.  
  77. #endif /* BLANK_H */
  78.